Skip to content

Conversation

@Christinarlong
Copy link
Contributor

We've had some problems with servicehooks not updating previously so would like an SLO on them

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 26, 2025
@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #94489      +/-   ##
==========================================
+ Coverage   87.93%   87.97%   +0.03%     
==========================================
  Files       10370    10394      +24     
  Lines      599908   602459    +2551     
  Branches    23350    23350              
==========================================
+ Hits       527524   530005    +2481     
- Misses      71909    71979      +70     
  Partials      475      475              

@Christinarlong Christinarlong marked this pull request as ready for review June 26, 2025 23:07
@Christinarlong Christinarlong requested review from a team as code owners June 26, 2025 23:07
{
"installations": installations.values_list("id", flat=True),
"sentry_app_id": sentry_app_id,
"events": events,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what would the cardinality of events be?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cardinality would be ~15 - corresponding to each of the webhook types. Though does cardinality matter in extras?

installations = SentryAppInstallation.objects.filter(sentry_app_id=sentry_app_id)
lifecycle.add_extras(
{
"installations": installations.values_list("id", flat=True),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can installations theoretically be extremely large for apps like linear? - if so it make make logs expensive and maybe something we can lookup based on id?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok yeah after looking it up its like 16000 installs 💫 . The failure case I'm trying to target here is when an update fails for a specific installation.. hm I guess I can move the lifecycle to start within the while loop. This is a pretty uncommon task so it shouldn't accrue too many metrics

@Christinarlong Christinarlong merged commit 1e8d9e7 into master Jun 30, 2025
65 checks passed
@Christinarlong Christinarlong deleted the crl/update-sh-slo branch June 30, 2025 21:06
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants